﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class GioHangDto
    {
        #region ThuocTinh
        private int m_IDNguoiDung;
        private List<HangDto> m_lstHang;
        private double m_ThanhTien;
        private DateTime m_Ngay;
        private String m_HoTen;
        private String m_DiaChi;
        private String m_DienThoai;
        private String m_Email;
        private int m_KieuThanhToan;
        #endregion ThuocTinh

        #region PhuongThuc
        /// <summary>
        /// Lấy/Gán ID người dùng
        /// </summary>
        public int IDNguoiDung
        {
            get { return this.m_IDNguoiDung; }
            set { this.m_IDNguoiDung = value; }
        }

        /// <summary>
        /// Lấy/Gán hàng trong giỏ
        /// </summary>
        public List<HangDto> lstHang
        {
            get { return this.m_lstHang; }
            set { this.m_lstHang = value; }
        }

        /// <summary>
        /// Lấy/Gán Ngày
        /// </summary>
        public DateTime Ngay
        {
            get { return this.m_Ngay; }
            set { this.m_Ngay = value; }
        }

        /// <summary>
        /// Lấy/Gán thành tiền
        /// </summary>
        public double ThanhTien
        {
            get { return this.m_ThanhTien; }
            set { this.m_ThanhTien = value; }
        }

       

        public String HoTen
        {
            get { return this.m_HoTen; }
            set { this.m_HoTen = value; }
        }

        public String DiaChi
        {
            get { return this.m_DiaChi; }
            set { this.m_DiaChi = value; }
        }

        public String DienThoai
        {
            get { return this.m_DienThoai; }
            set { this.m_DienThoai = value; }
        }

        public String Email
        {
            get { return this.m_Email; }
            set { this.m_Email = value; }
        }

        public int KieuThanhToan
        {
            get { return this.m_KieuThanhToan; }
            set { this.m_KieuThanhToan = value; }
        }
        //</NEW CODE>

        public GioHangDto()
        {
            m_IDNguoiDung = -1;
            m_Ngay = DateTime.Now;
            m_lstHang = new List<HangDto>();
            HoTen = "";
            DiaChi = "";
            DienThoai = "";
            Email = "";
            KieuThanhToan = -1;
        }
        #endregion PhuongThuc
    }
}
